const mongoose = require('mongoose')
const Schema = mongoose.Schema
const ObjectId = Schema.Types.ObjectId

const newGoodSchema = new Schema(
  {
    ObjectId: ObjectId,
    goodsId: { type: String },
    name: { type: String },
    mallPrice: { type: Number },
    price: { type: Number },
    image: { type: Number },
  },
  {
    collections: 'Banners',
  }
)
mongoose.model('newGood', newGoodSchema)
